<?php

class contactTable extends Doctrine_Table
{
    public function getContacts(){
    $q = Doctrine::getTable('contact')->createQuery('a');
    return $q->execute();

    }
    public function findMap($id){
        $q = $this->createQuery('a')->select('a.map')->where('a.id = ?', $id)->execute();
        return $q;
    }
    
}
